package com.jinzhi.jinzhidata.controller;

import com.jinzhi.jinzhidata.service.CarouselFigureService;
import com.jinzhi.jinzhidata.util.ResultVOUtil;
import com.jinzhi.jinzhidata.vo.ListCarouselFigureVO;
import com.jinzhi.jinzhidata.vo.ResultVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author vansl
 * @description
 * @date 2020-01-19 13:09
 **/
@RestController
@RequestMapping("/carouselFigure")
public class CarouselFigureController {

    @Autowired
    CarouselFigureService carouselFigureService;

    @GetMapping("/list")
    public ResultVO list() {
        List<ListCarouselFigureVO> listCarouselFigureVOList = carouselFigureService.selectList();
        return ResultVOUtil.success(listCarouselFigureVOList);
    }
}
